package com.woniu.async;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: phase3project
 * @BelongsPackage: com.woniu.async
 * @Author: hyl
 * @CreateTime: 2022-08-31  13:38
 * @Description: TODO
 * @Version: 1.0
 */
@Slf4j
@Component
@Order(1)
public class OnStartUpTask1 implements ApplicationRunner {
    /*/**
     *@description 启动即轮询
     *@params [args]
     *@return_value void
     *@author hyl
     *@date 2022/8/31
     */
    @Autowired
    private ScheduleTasks scheduleTasks;

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        log.info("项目启动轮询");
//        scheduleTasks.handleTimeOutUserApprove();
    }
}
